<?php if($file != ''): ?>
<a href="<?php echo $url ?>" onclick="window.open(this.href); return false;">
	<img src="<?php echo $file ?>" alt="banner" width="<?php echo $width ?>" height="<?php echo $height ?>" />
</a>
<?php endif ?>